// @import "@/global.scss";
@import "../node_modules/compass-mixins/lib/compass/reset";
@import "../node_modules/compass-mixins/lib/compass/css3";

$color-gray: #ababab;
$color-green: #3591df;
$font-family: 'Helvetica Neue', Helvetica, Arial, "Microsoft YaHei", sans-serif;

* {
  @include box-sizing(border-box);
  user-select: none;
}

body {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  font-family: $font-family;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
  background-color: #eee;
  overflow: auto;
  padding-top: 5px;

  @media screen and (max-width: 1024px) {
    padding-top: 0;
  }
}

a {
  text-decoration: none;
  color: $color-green;
  @include transition(all .2s ease-in-out);
}

.head {
  width: 1200px;
  margin: 20px auto;
  display: flex;
  justify-content: space-between;

  @media screen and (max-width: 1024px) {
    display: none;
  }

}

.win {
  @media screen and (max-width: 1024px) {
    display: flex;
  }
}

.last-modified {
  color: #bbb;
  font-size: 12px;
  text-align: right;
  display: inline-block;

  @media screen and (max-width: 1024px) {
    display: none;
  }

  @media print {
    display: none;
  }
}

.download-pdf {
  color: #bbb;
  font-size: 12px;
  text-align: right;

  @media screen and (max-width: 1024px) {
    display: none;
  }

  @media print {
    display: none;
  }
}

.content {
  position: relative;
  width: 1200px;
  margin: 20px auto;
  margin-bottom: 20px;
  @include border-radius(5px);
  background-color: #fff;
  overflow: hidden;

  @media screen and (max-width: 1024px) {
    width: 100%;
    margin: 0;
    @include border-radius(0);
  }
}

.content-hd {
  width: 100%;
  padding: 30px 50px;
  display: flex;
  color: #fff;
  background-color: #1fc8db;
  background-image: linear-gradient(141deg, #c25dec 0%, #198cde 51%, #3591e0 80%);
  overflow: hidden;

  @media screen and (max-width: 720px) {
    padding: 25px 30px;
  }

  @media print {
    color: #000;
    background-color: #fff;
  }

  .title {
    width: 100%;
    border-bottom: 1px solid #ffffff38;
    font-size: 52px;
    font-weight: 300;
    overflow: hidden;
    //padding-bottom: 5px;
    margin-bottom: 12px;
  }

  .name,
  .job,
  .info,
  .contact {
    width: 50%;

    @media screen and (max-width: 720px) {
      width: 100%;
      text-align: center;
    }
  }

  .name {
    float: left;

    h1 {
      font-family: "Lucida Grande", "Hiragino Sans GB", "Hiragino Sans GB W3", $font-family;
      font-weight: 500;
      letter-spacing: 5px;

      @media screen and (max-width: 720px) {
        letter-spacing: 0;
        font-size: 48px;
        line-height: 1.25;
        margin-top: 16px;
      }

      small {
        font-weight: 400;
        letter-spacing: 0;
        font-size: 24px;
        padding-left: 10px;

        @media screen and (max-width: 720px) {
          display: block;
          padding-left: 0;
          font-size: 20px;
          line-height: 1;
        }
      }
    }
  }

  .job {
    float: right;
    text-align: right;

    @media screen and (max-width: 720px) {
      text-align: center;
    }


    h2 {
      display: inline-block;
      font-size: 24px;

      @media screen and (max-width: 720px) {
        border-top: 1px solid #ffffff38;
        margin: 5px auto 0;
        font-size: 20px;
        padding: 10px;
      }
    }
  }

  .info {
    float: left;
    line-height: 22px;

    ul {
      margin: 8px 0 4px;

      @media screen and (max-width: 720px) {
        text-align: center;
        margin: 16px 0 0;
      }
    }
  }

  .contact {
    float: right;
    text-align: right;
    padding-right: 5px;

    ul {
      margin: 8px 0 4px;

      @media screen and (max-width: 720px) {
        text-align: center;
        margin: 16px 0 0;
      }

      &>li {
        height: 22px;

        @media screen and (max-width: 720px) {
          display: inline-block;
        }

        &>a {
          color: #fff;

          @media print {
            color: #000;
          }

          //font-family: "Lucida Grande", "Hiragino Sans GB", "Hiragino Sans GB W3", $font-family;
          font-size: 14px;
          line-height: 22px;

          &:hover {
            color: #e8e8e8;
          }

          .contact-link {
            @media screen and (max-width: 720px) {
              display: none;
            }
          }

          .iconfont {
            fill: #fff;
            vertical-align: text-top;

            @media screen and (max-width: 720px) {
              margin: 5px 8px;
            }
          }
        }
      }
    }
  }
}

.content-bd {
  width: 100%;
  min-height: 200px;
  padding: 10px 30px 50px;
  overflow: hidden;
  display: flex;

  @media screen and (max-width: 720px) {
    padding: 20px 20px 50px;
    flex-direction: column;
  }

  .content-left,
  .content-right {
    flex: 1;

    @media screen and (max-width: 1024px) {
      width: 100%;
    }
  }

  .content-left {
    float: left;
    border-right: 1px solid #ededed;

    @media screen and (max-width: 1024px) {
      border-right: none
    }
  }

  .content-right {
    float: right;
  }

  section {
    overflow: hidden;
    padding: 10px 15px;
  }

  .section-hd {
    position: relative;
    height: 40px;
    margin: 5px auto 5px;
    overflow: hidden;
  }

  .section-bd {
    overflow: hidden;

    ul {
      li {
        margin-top: 4px;
        font-size: 13px;
        letter-spacing: 0.3px;
        margin-left: 16px;
        list-style: square;
      }
    }

    .item {
      margin-bottom: 16px;

      ol {
        /* Won't be interpreted by IE6/7. */
        list-style-type: none;
        counter-reset: level1;
      }

      ol .project-2 {
        display: flex;
        margin: 8px 0px 4px;
      }

      .project-1 {
        box-sizing: border-box;
        padding-left: 15px;

        .project-name {
          display: inline;
          font-weight: bold;
          font-size: 16px;
          line-height: 22px;
        }
      }

      ol .project-1:before,
      ol .project-2 span {
        //font: italic 1em Georgia, Times, serif;
        font: 1em "等线";
        color: #333333;
        list-style-type: upper-roman;
        font-size: 14px
      }

      ol .project-1:before {
        font-size: 15px;
        content: counter(level1) ". ";
        counter-increment: level1;
      }

      ol li .item-bd {
        /* For IE6/7. */
        margin-left: 10px;
      }

      ul li:before {
        content: ""
      }

      .item-project {
        li {}
      }
    }

    .item:not(:first-child) {
      border-top: #ededed dashed 1px;
    }
  }

  .section-title-l,
  .section-title-r {
    position: absolute;
    top: 50%;
    display: inline-block;
    width: 35%;
    height: 0;
    vertical-align: middle;
    border-top: 1px solid #ededed;
  }

  .section-title-l {
    left: 0;
  }

  .section-title-r {
    right: 0;
  }

  .section-title {
    position: relative;
    z-index: 1;
    width: 25%;
    min-width: 100px;
    margin: 0 auto;
    padding: 4px 10px;
    @include border-radius(32px);
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    background-color: #eee;
  }

  .section-list {
    padding: 10px 0 5px;
  }

  .item-hd {
    position: relative;
    padding: 10px 0;
    line-height: 20px;
    overflow: hidden;
    font-weight: 500;
    min-height: 30px;
    margin-bottom: 5px;
    display: flex;

    .item-hd-box {
      display: flex;
      justify-content: center;
      align-items: center;

      .item-hd-box-img {
        width: 30px;
        display: flex;
        // justify-content: center;
        align-items: center;
      }
    }

    .item-time {
      display: inline-block;
      float: left;
      width: 25%;
      font-size: 16px;
      font-weight: 800;

      @media screen and (max-width: 720px) {
        width: 100%;
        margin-bottom: 5px;
      }
    }

    .item-more {
      position: absolute;
      top: 10px;
      right: 0;
    }

    .item-name {
      float: left;
      font-size: 20px;
      font-weight: bold;
    }


    .project-2 {
      .project-name-2 {
        font-size: 14px;

      }
    }

    .project-des {
      font-size: 13px;
      padding: 4px 0px;
      margin-left: -10px;
    }

    .div-item {
      margin: 4px 0 8px;
    }
  }

  .item-bd {
    .project-des {
      font-size: 13px;
      padding: 4px 0px;
      margin-left: -10px;
    }
  }

  .item-des {
    //margin-bottom: 16px;
  }

  .item-project-des {
    background: #F3F3F2;
    border-radius: 6px;
    padding: 6px;
    color: #545454;
    font-family: "等线";
    font-size: 13px;
    line-height: 22px;
  }

  .section-content {
    text-align: justify;
    word-break: break-all;
    line-height: 22px;

    em {
      display: inline-block;
      font-family: Menlo, $font-family;
      font-size: 12px;
      line-height: 14px;
      border: 1px solid $color-gray;
      @include border-radius(3px);
      margin: 2px;
      padding: 0 3px;
      background-color: #f7f7f7;
    }

    strong {
      font-family: $font-family;
      font-size: 12px;
      line-height: 14px;
      border: 1px solid #f3f3f3;
      @include border-radius(3px);
      font-weight: 500;
      color: #444;
      margin: 2px;
      padding: 0 3px;
      background-color: #f6f6f6;
    }
  }

  .practice {
    .item-time {
      color: #8a8a8a;
      width: 100%;
      font-size: 12px;
    }
  }
}

.btn {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid $color-green;
  border-radius: 3px;
  color: $color-green;
  font-family: Menlo, $font-family;
  font-size: 14px;
  line-height: 18px;
  text-align: center;

  &:hover {
    color: #fff;
    background-color: $color-green;
  }
}

.github-footer {
  text-align: center;

  .footer-link {
    display: inline-block;
    color: $color-gray;
    margin-bottom: 25px;

    @media screen and (max-width: 1024px) {
      margin-top: 25px;
    }
  }

  @media print {
    display: none;
  }
}


.img-box {
  width: 200px;
  padding-right: 50px;
  box-sizing: border-box;

  img {
    width: 100%;
    border-radius: 5%;
  }
}

.conten-box {
  flex: 1;
}

li {
  margin: 5px 0;
}

.NOBox {
  display: none;
}

.ShowBox {
  display: block;
}